package session.stateless.people;

import java.sql.Timestamp;
import java.util.List;
import javax.ejb.Local;
import entity.people.PeopleEntity;
import java.util.Date;

@Local
public interface PeopleSessionLocal {
    
    public void createPeople(String firstName, String lastName, String gender, String address, String city, String country, String phone1, String phone2, String email1, String email2, Date dateOfBirth, Timestamp dateAdded, String passport, String type);
    public void editPeople(String address, String city, String country, String phone1, String phone2, String email1, String email2, String passport, String type);
    public void deletePeople(String passport);
    
    public List<PeopleEntity> findAll();
    public List<PeopleEntity> findId(Long id);
    public List<PeopleEntity> findFirstName(String firstName);
    public List<PeopleEntity> findLastName(String lastName);
    public List<PeopleEntity> findGender(String gender);
    public List<PeopleEntity> findCity(String city);
    public List<PeopleEntity> findCountry(String country);
    public List<PeopleEntity> findPhone1(String phone1);
    public List<PeopleEntity> findPhone2(String phone2);
    public List<PeopleEntity> findEmail1(String email1);
    public List<PeopleEntity> findEmail2(String email2);
    public List<PeopleEntity> findPassport(String passport);
    public List<PeopleEntity> findDateOfBirth(Date dateOfBirth);
    public List<PeopleEntity> findType(String type);
                
}
